package designMode.strategyPattern;

/**
 * @ClassName MallardDuck
 * @Description
 * @Author LIBOFEI
 * @Date 2020/6/14 16:50
 * @Version 1.0
 **/
public class MallardDuck extends Duck {

    public MallardDuck(){
        quackBehavior = new Quack();
        flyBehavior = new FlyWithWings();
    }


    @Override
    public void display() {
        System.out.println("绿头鸭再叫");
    }
}
